<template>
  <div class="wifi">
    <div class="wifi-info">
        <div class="wifi-pic">
            <!-- <img class="wifi-img" :src="icon"> -->
            <van-icon class="wifi-success" name="passed" />
            <div>{{name}}</div>
        </div>
        <div class="wifi-comment">{{wifiName}}</div>
    </div>
    <van-button class="wifi-btn" @click="link" :loading="loading" type="primary"  size="large">连接Wi-Fi</van-button>
  </div>
</template>
<script>
export default {
  name: 'wifi-before',
  comments: 'wifi-before',
  data () {
    return {
      name: 'Lady健身女王',
      icon: './static/images/icon1.jpg',
      wifiName: 'Lady健身女王Wi-Fi',
      loading: false
    }
  },
  created () {
    document.title = 'Wi-Fi连接'
  },
  methods: {
    link: function () {
      this.loading = true
    }
  }
}
</script>
<style lang="postcss" scoped>
.wifi-info{
    margin-top: 20%;
}
.wifi-img{
    width: 50px;
    height: 50px;
}
.wifi-success{
    font-size: 4rem;
    color: #06bf04;
}
.wifi-comment{
    font-size: 0.5rem;
    color: #999;
    margin-top: 5px;
}
.wifi-btn{
    width: 60%;
    margin-top: 40px;
}
</style>
